//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "common\fn_getStringVar.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_var"];
_var = _this;
if (IS_ARRAY(_this)) then {
	DEFAULT_PARAM(_var,0,"");
};

if !(IS_STRING(_var)) then {
	if (IS_SCALAR(_var)) then {
		_var = format[TMF_EDITOR_OBJECTIVE,_var];
	} else {
		_var = format[TMF_EDITOR_OBJECTIVE,str(_var)];
	};
};
TRACE_1("End",_var);
TMFPROFILERSTOP;
_var;